Skip to content

fix: prevent deadlock and focus freeze on compose insert & close - #77

Merged
TimInTech merged 1 commit into
mainfrom
fix/compose-insert-close-deadlock
Nov 5, 2026
Merged

TimInTech merged 1 commit into
mainfrom
fix/compose-insert-close-deadlock

Conversation

@TimInTech

Copy link
Copy Markdown
Owner

Summary

  • Closes the compose window immediately in _on_paste_clicked() before triggering the paste, preventing Wayland/Mutter focus stalls and ensuring the simulated Ctrl+V lands in the target window.
  • Adds restore_clipboard: bool = True to PasteService.paste(); skips clipboard reading/restoration when restore_clipboard=False (used by compose window).
  • Adds a safe timeout to process.communicate() in _read_clipboard()'s timeout handler so lingering child processes cannot block the event loop indefinitely.
  • Adds unit tests in tests/test_paste_service.py.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T12:58:59.243370Z 8e630db PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TimInTech
TimInTech merged commit f55940d into main Nov 5, 2026
12 checks passed
@TimInTech
TimInTech deleted the fix/compose-insert-close-deadlock branch November 5, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant